﻿namespace CloudNinja.Metering.Common.Configuration
{
    using System.Configuration;

    public sealed class MeteringSection : ConfigurationSection
    {
        [ConfigurationProperty("CommonSettings")]
        public CommonSettingsElement CommonSettings
        {
            get
            {
                return this["CommonSettings"] as CommonSettingsElement;
            }

            set
            {
                this["CommonSettings"] = value;
            }
        }

        [ConfigurationProperty("MeteringRepositorySettings")]
        public MeteringRepositorySettingsElement MeteringRepositorySettings
        {
            get
            {
                return this["MeteringRepositorySettings"] as MeteringRepositorySettingsElement;
            }

            set
            {
                this["MeteringRepositorySettings"] = value;
            }            
        }

        [ConfigurationProperty("Providers")]
        public ProvidersElement ProviderSettings
        {
            get
            {
                return this["Providers"] as ProvidersElement;
            }

            set
            {
                this["Providers"] = value;
            }
        }
    }
}